package game;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;

public class Inimigo_03 extends BaseEnemy
{

	private static final long serialVersionUID = 1L;

	public Inimigo_03(int indexImage, Point position, Point size, Point sPos,
			Point recorte, Point rowLine, float time, boolean input, int HP,
			float speedShoot)
	{
		super(indexImage, position, size, sPos, recorte, rowLine, time, input, HP,
				speedShoot);
		this.setBomber(true);
		
		// TODO Auto-generated constructor stub
		
		//new SoundClip(5,0);
		isEnemy3 = true;
		isBomber = true;
		
	}
	
	@Override
	public void Update(Player p) {
		// TODO Auto-generated method stub

		automatic = true;
		super.Update(p);
		
		if(this.getRectangle().intersects(new Rectangle(0,0,800,600)))
			Audios.getInstance().Play(5);
		//	new SoundClip(5, 0);
		
			
	}
	@Override
	public void draw(Graphics2D g2d) {
		// TODO Auto-generated method stub
		super.draw(g2d);
	}
}

